/*
 * @Author: shawnXiao
 * @Date: 2021-12-18 19:54:33
 * @LastEditTime: 2021-12-18 23:14:29
 * @FilePath: /vue3-vite2-ts-antdv/src/main.ts
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import { setupAntd } from './plugins/setupAntd'
// message 和 notification 组件的样式需要单独引入，别问为什么，问就是 unplugin-vue-components/resolvers 有 BUG
import "ant-design-vue/lib/message/style/index.less";
import "ant-design-vue/lib/notification/style/index.less";

const app = createApp(App)

// 注册全局ant-design-vue组件
import.meta.env.MODE === 'production' && setupAntd(app) // 调用组件

app.use(router).use(store)
app.mount('#app')
